import request from '@/config/axios'

export interface ItemVO {
  id: number | undefined
  argument组织编码: number | string
  argument汇报组织编码: number
  creator: string
  createTime: Date
}

// 查询列表
export const getItemPage = (params: PageParam) => {
  return request.get({ url: '/system/notice/page', params })
}

// 查询详情
export const getItem = (id: number) => {
  return request.get({ url: '/system/notice/get?id=' + id })
}

// 新增
export const createItem = (data: ItemVO) => {
  return request.post({ url: '/system/notice/create', data })
}

// 修改
export const updateItem = (data: ItemVO) => {
  return request.put({ url: '/system/notice/update', data })
}

// 删除
export const deleteItem = (id: number) => {
  return request.delete({ url: '/system/notice/delete?id=' + id })
}

// 批量删除
export const deleteItemList = (ids: number[]) => {
  return request.delete({ url: '/system/notice/delete-list', params: { ids: ids.join(',') } })
}


